#include <stdio.h>
int main()
{
	printf("please input :\n");
	char string[100];
	int index,word = 1 ;
	char blank;
	gets(string);
	
	if(string [0] =='\0')
	{
		printf("nothing\n");
		 
	 } 
	 else if(string [0]==' ')
	 {
	 	printf("just is a blank \n");
	 	
	 }
	 else 
	 {
	 	for (index = 0;string[index]!='\0';index++)
	 	{
	 		blank = string[index];
	 		if(blank ==' ')
	 		{
	 			word++;
	 			
			 }
			 
		 }
		printf("%d\n",word);
	 }
	 return 0;
}
